package com.amsp.oa.oademo.entity;

import com.baomidou.mybatisplus.annotation.*;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import java.math.BigDecimal;
import java.util.Date;
import com.fasterxml.jackson.annotation.JsonFormat;

@Data
@TableName("labor_termination2")
@ApiModel(value = "LaborTermination2对象", description = "劳动合同终止协议书二")
public class LaborTermination2 {

    @TableId(value = "id", type = IdType.AUTO)
    @ApiModelProperty(value = "主键ID")
    private Long id;

    @ApiModelProperty(value = "甲方名称")
    private String aparty;

    @ApiModelProperty(value = "乙方姓名")
    private String bparty;

    @ApiModelProperty(value = "身份证号码")
    private String idNumber;

    @ApiModelProperty(value = "合同开始日期")
    @JsonFormat(pattern = "yyyy-MM-dd", timezone = "GMT+8")
    private Date startDate;

    @ApiModelProperty(value = "合同期限")
    private String contractPeriod;

    @ApiModelProperty(value = "合同解除日期")
    @JsonFormat(pattern = "yyyy-MM-dd", timezone = "GMT+8")
    private Date endDate;

    @ApiModelProperty(value = "补偿金额")
    private BigDecimal compensationAmount;

    @ApiModelProperty(value = "补偿金额大写")
    private String chineseAmount;

    @ApiModelProperty(value = "甲方签名")
    private String asignature;

    @ApiModelProperty(value = "乙方签名")
    private String bsignature;

    @ApiModelProperty(value = "甲方签署日期")
    @JsonFormat(pattern = "yyyy-MM-dd", timezone = "GMT+8")
    private Date asignDate;

    @ApiModelProperty(value = "乙方签署日期")
    @JsonFormat(pattern = "yyyy-MM-dd", timezone = "GMT+8")
    private Date bsignDate;

    @ApiModelProperty(value = "创建时间")
    @TableField(fill = FieldFill.INSERT)
    @JsonFormat(pattern = "yyyy-MM-dd", timezone = "GMT+8")
    private Date createTime;

    @ApiModelProperty(value = "更新时间")
    @TableField(fill = FieldFill.INSERT_UPDATE)
    @JsonFormat(pattern = "yyyy-MM-dd", timezone = "GMT+8")
    private Date updateTime;

    @TableLogic
    @ApiModelProperty(value = "是否删除")
    private Boolean isDeleted;
}